<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/JsonObject.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_076842b242c291358044feb169933571.html">aws</a></li><li class="navelem"><a class="el" href="dir_cc4322e4b2151c90adb7cd2e3f54423a.html">crt</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JsonObject.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="JsonObject_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;).</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * A copy of the License is located at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  http://aws.amazon.com/apache2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * or in the &quot;license&quot; file accompanying this file. This file is distributed</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * express or implied. See the License for the specific language governing</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * permissions and limitations under the License.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="StlAllocator_8h.html">aws/crt/StlAllocator.h</a>&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="Types_8h.html">aws/crt/Types.h</a>&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceAws.html">Aws</a></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">struct </span><a class="code" href="namespaceAws.html#abe25c440448d4d9d5667369353012a2f">cJSON</a>;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keyword">namespace </span>Crt</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    {</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keyword">class </span>JsonView;</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1JsonObject.html">   30</a></span>&#160;        <span class="keyword">class </span><a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;          <span class="keyword">public</span>:</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>();</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;value);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;value);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>(<a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;&amp;value) noexcept;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            ~<a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;other);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;operator=(<a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;&amp;other) noexcept;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithString(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;value);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithString(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;value);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsString(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;value);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithBool(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keywordtype">bool</span> value);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithBool(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">bool</span> value);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsBool(<span class="keywordtype">bool</span> value);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithInteger(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithInteger(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsInteger(<span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithInt64(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, int64_t value);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithInt64(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, int64_t value);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsInt64(int64_t value);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithDouble(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithDouble(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsDouble(<span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithArray(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;String&gt;</a> &amp;array);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithArray(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;String&gt;</a> &amp;array);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithArray(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonObject&gt;</a> &amp;array);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithArray(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonObject&gt;</a> &amp;&amp;array);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsArray(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonObject&gt;</a> &amp;array);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsArray(<a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonObject&gt;</a> &amp;&amp;array);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsNull();</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithObject(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;value);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithObject(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;value);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithObject(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key, <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;&amp;value);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;WithObject(<span class="keyword">const</span> <span class="keywordtype">char</span> *key, <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;&amp;value);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsObject(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;value);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;AsObject(<a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;&amp;value);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1JsonObject.html#ae01663398e9aac618fb806d18f9dbd2e">  189</a></span>&#160;            <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html#ae01663398e9aac618fb806d18f9dbd2e">WasParseSuccessful</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_wasParseSuccessful; }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1JsonObject.html#a0db9e27553d09d3b399284478fc49995">  194</a></span>&#160;            <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;<a class="code" href="classAws_1_1Crt_1_1JsonObject.html#a0db9e27553d09d3b399284478fc49995">GetErrorMessage</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorMessage; }</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> View() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;          <span class="keyword">private</span>:</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            <span class="keywordtype">void</span> Destroy();</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a>(<a class="code" href="structAws_1_1cJSON.html">cJSON</a> *value);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <a class="code" href="structAws_1_1cJSON.html">cJSON</a> *m_value;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            <span class="keywordtype">bool</span> m_wasParseSuccessful;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> m_errorMessage;</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1JsonObject.html#a3d1aa4c576f95d3473ab7952a8abde2a">  207</a></span>&#160;            <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a>;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        };</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classAws_1_1Crt_1_1JsonView.html">  216</a></span>&#160;        <span class="keyword">class </span><a class="code" href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a> <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;          <span class="keyword">public</span>:</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            <span class="comment">/* constructors */</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a>();</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a>(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;val);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> &amp;val);</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> GetString(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> GetString(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> AsString() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;            <span class="keywordtype">bool</span> GetBool(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            <span class="keywordtype">bool</span> GetBool(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            <span class="keywordtype">bool</span> AsBool() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <span class="keywordtype">int</span> GetInteger(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            <span class="keywordtype">int</span> GetInteger(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            <span class="keywordtype">int</span> AsInteger() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;            int64_t GetInt64(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            int64_t GetInt64(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            int64_t AsInt64() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordtype">double</span> GetDouble(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            <span class="keywordtype">double</span> GetDouble(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;            <span class="keywordtype">double</span> AsDouble() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonView&gt;</a> GetArray(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonView&gt;</a> GetArray(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Vector&lt;JsonView&gt;</a> AsArray() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> GetJsonObject(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> GetJsonObject(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> GetJsonObjectCopy(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; </div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> GetJsonObjectCopy(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> AsObject() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a1cf42e328e4553fa884d30468915df73">Map&lt;String, JsonView&gt;</a> GetAllObjects() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160; </div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            <span class="keywordtype">bool</span> ValueExists(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            <span class="keywordtype">bool</span> ValueExists(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; </div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;            <span class="keywordtype">bool</span> KeyExists(<span class="keyword">const</span> <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> &amp;key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            <span class="keywordtype">bool</span> KeyExists(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;            <span class="keywordtype">bool</span> IsObject() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;            <span class="keywordtype">bool</span> IsBool() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <span class="keywordtype">bool</span> IsString() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; </div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordtype">bool</span> IsIntegerType() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;            <span class="keywordtype">bool</span> IsFloatingPointType() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;            <span class="keywordtype">bool</span> IsListType() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160; </div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            <span class="keywordtype">bool</span> IsNull() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> WriteCompact(<span class="keywordtype">bool</span> treatAsObject = <span class="keyword">true</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            <a class="code" href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">String</a> WriteReadable(<span class="keywordtype">bool</span> treatAsObject = <span class="keyword">true</span>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160; </div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonObject.html">JsonObject</a> Materialize() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160; </div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;          <span class="keyword">private</span>:</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a>(<a class="code" href="structAws_1_1cJSON.html">cJSON</a> *val);</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;            <a class="code" href="classAws_1_1Crt_1_1JsonView.html">JsonView</a> &amp;operator=(<a class="code" href="structAws_1_1cJSON.html">cJSON</a> *val);</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            <a class="code" href="structAws_1_1cJSON.html">cJSON</a> *m_value;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        };</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    } <span class="comment">// namespace Crt</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;} <span class="comment">// namespace Aws</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructAws_1_1cJSON_html"><div class="ttname"><a href="structAws_1_1cJSON.html">Aws::cJSON</a></div><div class="ttdef"><b>Definition:</b> cJSON.h:71</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_ac975615d2a9140660077ef7b264d9b6c"><div class="ttname"><a href="namespaceAws_1_1Crt.html#ac975615d2a9140660077ef7b264d9b6c">Aws::Crt::Vector</a></div><div class="ttdeci">std::vector&lt; T, StlAllocator&lt; T &gt; &gt; Vector</div><div class="ttdef"><b>Definition:</b> Types.h:66</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1JsonObject_html_ae01663398e9aac618fb806d18f9dbd2e"><div class="ttname"><a href="classAws_1_1Crt_1_1JsonObject.html#ae01663398e9aac618fb806d18f9dbd2e">Aws::Crt::JsonObject::WasParseSuccessful</a></div><div class="ttdeci">bool WasParseSuccessful() const</div><div class="ttdef"><b>Definition:</b> JsonObject.h:189</div></div>
<div class="ttc" id="aTypes_8h_html"><div class="ttname"><a href="Types_8h.html">Types.h</a></div></div>
<div class="ttc" id="aExports_8h_html_a0a3f6c46aee6b588ce99a142cdb22d1d"><div class="ttname"><a href="Exports_8h.html#a0a3f6c46aee6b588ce99a142cdb22d1d">AWS_CRT_CPP_API</a></div><div class="ttdeci">#define AWS_CRT_CPP_API</div><div class="ttdef"><b>Definition:</b> Exports.h:34</div></div>
<div class="ttc" id="anamespaceAws_html_abe25c440448d4d9d5667369353012a2f"><div class="ttname"><a href="namespaceAws.html#abe25c440448d4d9d5667369353012a2f">Aws::cJSON</a></div><div class="ttdeci">struct Aws::cJSON cJSON</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1JsonObject_html_a0db9e27553d09d3b399284478fc49995"><div class="ttname"><a href="classAws_1_1Crt_1_1JsonObject.html#a0db9e27553d09d3b399284478fc49995">Aws::Crt::JsonObject::GetErrorMessage</a></div><div class="ttdeci">const String &amp; GetErrorMessage() const</div><div class="ttdef"><b>Definition:</b> JsonObject.h:194</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1JsonObject_html"><div class="ttname"><a href="classAws_1_1Crt_1_1JsonObject.html">Aws::Crt::JsonObject</a></div><div class="ttdef"><b>Definition:</b> JsonObject.h:31</div></div>
<div class="ttc" id="anamespaceAws_html"><div class="ttname"><a href="namespaceAws.html">Aws</a></div><div class="ttdef"><b>Definition:</b> Api.h:25</div></div>
<div class="ttc" id="aclassAws_1_1Crt_1_1JsonView_html"><div class="ttname"><a href="classAws_1_1Crt_1_1JsonView.html">Aws::Crt::JsonView</a></div><div class="ttdef"><b>Definition:</b> JsonObject.h:217</div></div>
<div class="ttc" id="aStlAllocator_8h_html"><div class="ttname"><a href="StlAllocator_8h.html">StlAllocator.h</a></div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a865381ab2bc5db45524fa6ce43c394c3"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a865381ab2bc5db45524fa6ce43c394c3">Aws::Crt::String</a></div><div class="ttdeci">std::basic_string&lt; char, std::char_traits&lt; char &gt;, StlAllocator&lt; char &gt; &gt; String</div><div class="ttdef"><b>Definition:</b> Types.h:58</div></div>
<div class="ttc" id="anamespaceAws_1_1Crt_html_a1cf42e328e4553fa884d30468915df73"><div class="ttname"><a href="namespaceAws_1_1Crt.html#a1cf42e328e4553fa884d30468915df73">Aws::Crt::Map</a></div><div class="ttdeci">std::map&lt; K, V, std::less&lt; K &gt;, StlAllocator&lt; std::pair&lt; const K, V &gt; &gt;&gt; Map</div><div class="ttdef"><b>Definition:</b> Types.h:60</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
